package com.pacific.sign.biz.user.bean;

/**
 *    用户权限
 */
public enum UserRoleEnum {

    /**  区域副总*/
    VP("6810"),
    /** 区域总监 */
    MD("5910"),
    /** 店长 */
    SM("4910"),
    /** 经纪人(客户经理)*/
    BROKER_MANAGER("4200"),
    /** 经纪人(置业顾问)*/
    BROKER_COUNSELOR("4100");

    private String type;

    public String getType() {
        return type;
    }


    public void setType(String type) {
        this.type = type;
    }

    UserRoleEnum(String type) {
        this.type = type;
    }

    public static UserRoleEnum getAreaStatusEnum(String type){
        for (UserRoleEnum typeEnum: values()) {
            if (typeEnum.getType().equals(type)){
                return typeEnum;
            }
        }
        return null;
    }

}
